import request from '@/utils/request.js'

// 规则分类列表查询
export const ruleshowListService = () => {
  return request.get('/rule/getAllRules');
}

// 规则分类添加
export const ruleAddService = (ruledata) => {
  return request.post('/rule/addRule', ruledata);
}

//规则分类修改
export const ruleUpdateService = (ruleData) => {
  return request.put('/rule/updateRule', ruleData);
};

//规则分类删除
export const ruleDeleteService = (ruleId) =>{
  return request.delete('/rule/' + ruleId);
}
